import React from 'react';
import {SafeAreaView, useSafeAreaInsets} from 'react-native-safe-area-context';
import ChatNavigation from './Navigation';
import {useNavigation} from '@react-navigation/native';
import {Input, Pressable, Text} from 'native-base';
const ChatSetName = () => {
  const navigation = useNavigation();
  const insets = useSafeAreaInsets();
  return (
    <SafeAreaView style={{flex: 1, backgroundColor: '#eee', paddingTop: insets.top, paddingBottom: insets.bottom}} edges={['left', 'right']}>
      <ChatNavigation
        title="会诊室名称"
        showMore={false}
        rightSlot={
          <Pressable onPress={() => navigation.goBack()}>
            <Text color="#007AFF">完成</Text>
          </Pressable>
        }
      />
      <Input bg="white" h="12" placeholder="输入会诊室名称" w="100%" />
    </SafeAreaView>
  );
};

export default ChatSetName;
